home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 124 / cd-rom 124.iso / edu / tuxmath / tuxmathscrabble / tuxmathscrabble.exe / asymptopia / Tile.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-16  |  1.1 KB  |  24 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. from myutil import *
  5.  
  6. class Tile(pygame.sprite.Sprite):
  7.     
  8.     def __init__(self, img, int_val, str_val):
  9.         pygame.sprite.Sprite.__init__(self)
  10.         (self.image, self.rect) = load_image(img, 1)
  11.         self.saved_center = None
  12.         self.int_val = int_val
  13.         self.str_val = str_val
  14.  
  15.     
  16.     def update(self):
  17.         self.rect.center = pygame.mouse.get_pos()
  18.  
  19.     
  20.     def reset(self):
  21.         self.rect.center = self.saved_center
  22.  
  23.  
  24.